/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UbArray;

//import java.util.Arrays;

/**
 *
 * @author trang
 */
public class UbArray {
    public static void main(String[] args) {
        int [] [] m;
        m =new int[4][];
        
        for (int i = 0; i < m.length; i++) {
            m[i]=new int[1+i*2];

            for (int j = 0; j < m[i].length; j++) {
                m [i][j]=i+j;
            }
        }
        for (int i = 0; i < m.length; i++) {
            for (int j = 0; j < m[i].length; j++) {
                m [i][j]=i+j;
        System.out.println(" " + m [i][j]);
                
    }
        System.out.println();


    }
    }
}
